package com.netease.domain;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.List;

/**
 * Created by dongle on 2017/2/27.
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public class MicroserviceItem {
    public static class Port_maps {
        private String protocol;

        private Integer source_port;

        private Integer dest_port;

        public void setProtocol(String protocol){
            this.protocol = protocol;
        }
        public String getProtocol(){
            return this.protocol;
        }
        public void setSource_port(Integer source_port){
            this.source_port = source_port;
        }
        public Integer getSource_port(){
            return this.source_port;
        }
        public void setDest_port(Integer dest_port){
            this.dest_port = dest_port;
        }
        public Integer getDest_port(){
            return this.dest_port;
        }
    }


    private Long id;

    private String status;

    private Integer replicas;

    private String service_name;

    private Integer stateful;

    private List<Port_maps> port_maps ;

    private Integer spec_id;

    private Integer stop_service;

    public void setId(Long id){
        this.id = id;
    }
    public Long getId(){
        return this.id;
    }
    public void setStatus(String status){
        this.status = status;
    }
    public String getStatus(){
        return this.status;
    }
    public void setReplicas(Integer replicas){
        this.replicas = replicas;
    }
    public Integer getReplicas(){
        return this.replicas;
    }
    public void setService_name(String service_name){
        this.service_name = service_name;
    }
    public String getService_name(){
        return this.service_name;
    }
    public void setStateful(Integer stateful){
        this.stateful = stateful;
    }
    public Integer getStateful(){
        return this.stateful;
    }
    public void setPort_maps(List<Port_maps> port_maps){
        this.port_maps = port_maps;
    }
    public List<Port_maps> getPort_maps(){
        return this.port_maps;
    }
    public void setSpec_id(Integer spec_id){
        this.spec_id = spec_id;
    }
    public Integer getSpec_id(){
        return this.spec_id;
    }
    public void setStop_service(Integer stop_service){
        this.stop_service = stop_service;
    }
    public Integer getStop_service(){
        return this.stop_service;
    }

}
